package com.katus.server.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * 通用返回格式
 * @author SUN Katus
 * @version 1.0, 2021-05-05
 */
@AllArgsConstructor
@Builder
@Data
@JsonInclude
@NoArgsConstructor
@Slf4j
public class ResponseResult<T> {
    private static final long serialVersionUID = 2239745194240267335L;
    /**
     * 返回数据
     */
    private T data;
    /**
     * 是否成功
     */
    private Boolean success;
    /**
     * 错误代码
     */
    private Integer code;
    /**
     * 描述 / 错误信息
     */
    private String message;
}
